package cn.xunjie.ymcc.feign;

import cn.xunjie.ymcc.domain.Course;
import cn.xunjie.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-common", fallbackFactory = MessagesTationFeignClientFallBackFactory.class)
public interface MessagesTationFeignClient {

    @RequestMapping(value="/messageStation/saveAndUpdate",method= RequestMethod.POST)
    JSONResult saveAndUpdate(Course course);
}
